package cn.zx.org.query;

import lombok.Data;

@Data
public class DepartmentQuery {
    /*默认第一页*/
    private Integer pageNum = 1;
    /*默认一页10条数据*/
    private Integer pageSize = 10;

    /**
     * 获取页数和每页多少条数据的方法
     * @return
     */
    public Integer getPage(){
        return (this.pageNum-1)*this.pageSize;
    }
}
